<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Frame Relationship Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
</head>
<body>
<script type="text/javascript">
<!--
   var msg="";
   var i = 0;
   msg += "<h2>Window: "+ window.name + "</h2><hr>";   
   if (self.frames.length> 0)
    {
       msg += "self.frames.length = " + self.frames.length + "<br>"
       for (i=0; i < self.frames.length; i++)
       msg += "self.frames["+i+"].name = "+ self.frames[i].name + "<br>";
    }
   else
       msg += "Current window has no frames directly within it<br>";
   msg+="<br>";
   if (parent.frames.length> 0)
     {
       msg += "parent.frames.length = " + parent.frames.length + "<br>"
       for (i=0; i < parent.frames.length; i++)
         msg += "parent.frames["+i+"].name = "+ parent.frames[i].name + "<br>";
      }
   msg+="<br>";
   if (top.frames.length> 0)
    {
       msg += "top.frames.length = " + top.frames.length + "<br>"
       for (i=0; i < top.frames.length; i++)
         msg += "top.frames["+i+"].name = "+ top.frames[i].name + "<br>";
    }
     
   document.write(msg);
// -->
</script>
</body>
</html>
